//
//  FKAreaItemCell.m
//  WanTao
//
//  Created by Macbook Pro on 2019/3/20.
//  Copyright © 2019 Macbook Pro. All rights reserved.
//

#import "FKAreaItemCell.h"

@interface FKAreaItemCell ()

@property (nonatomic, weak) UILabel *titleLabel;

@end

@implementation FKAreaItemCell

- (void)setupSubviews
{
    [super setupSubviews];
    
    UILabel *titleLabel = [UILabel fk_labelWithFont:fk_adjustFont(14) textColor:fkColor666666];
    [self.contentView addSubview:titleLabel];
    self.titleLabel = titleLabel;
    
    [titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.offset(0);
    }];
}

- (void)setData:(id)data
{
    [super setData:data];
    
    self.titleLabel.text = data[@"name"];
}

- (void)setSelected:(BOOL)selected
{
    [super setSelected:selected];
    
    self.titleLabel.textColor = selected ? fkMainColor : fkColor666666;
}

@end
